# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=evilize
pkgver=0.2
pkgrel=2
groups=('blackarch' 'blackarch-cracker' 'blackarch-binary' 'blackarch-crypto')
pkgdesc='Tool to create MD5 colliding binaries.'
arch=('x86_64' 'aarch64')
url='http://www.mathstat.dal.ca/~selinger/md5collision/'
license=('GPL2')
depends=()
makedepends=()
source=("http://www.mathstat.dal.ca/~selinger/md5collision/downloads/$pkgname-$pkgver.tar.gz")
sha512sums=('8762b5e3961d3f7e53f5aa05777bf510110552c444ead872aa2df289a125fefaaf3badcb56c59333ff9a10f5e697df862ef1b8ce48c3a65c903250dad6a79ee7')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 md5coll "$pkgdir/usr/bin/evilize-md5coll"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README AUTHORS ChangeLog
  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING MBSD-LICENSE
}

